public class DepartmentApprover extends Approver{
    public DepartmentApprover(String name) {
        super(name);
    }

    @Override
    public void handleRequest(PurchaseRequest purchaseRequest) {
        if (purchaseRequest.getMoney()<5000){
            System.out.println("编号为"+purchaseRequest.getId()+"的购买请求"+this.getName()+"已处理");
        }else{
            this.getApprover().handleRequest(purchaseRequest);
        }
    }
}
